<!DOCTYPE HTML>
<html lang="zh-hans" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>stockclass.get_data() | 量化投资程序 帮助文档</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        <meta name="author" content="量化投资班二期 第1组">
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-back-to-top-button/plugin.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-chapter-fold/chapter-fold.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-expandable-chapters/expandable-chapters.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-splitter/splitter.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-code/plugin.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-auto-scroll-table/website.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../getStock/stockclass.get_names.html" />
    
    
    <link rel="prev" href="../getStock/stockclass.get_stockPools.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="2.4"
        data-chapter-title="stockclass.get_data()"
        data-filepath="getStock/stockclass.get_data.md"
        data-basepath=".."
        data-revision="Sat Jul 24 2021 19:32:14 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
                
                <li>
                    <a href="https://224466414.github.io/Quantitative_Investment_Help/" target="blank" class="custom-link">Home</a>
                </li>
            
            

            
            <li class="divider"></li>
            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        目录
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="getDate/getDate.html">
            
                
                    <a href="../getDate/getDate.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        日期获取模块 getDate
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="getDate/dateclass.html">
            
                
                    <a href="../getDate/dateclass.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        dateclass()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="getDate/dates.html">
            
                
                    <a href="../getDate/dates.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        针对日期的方法
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="getDate/dateclass.get_dates.html">
            
                
                    <a href="../getDate/dateclass.get_dates.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.1.</b>
                        
                        dateclass.get_dates()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="getDate/dateclass.get_beforeDate.html">
            
                
                    <a href="../getDate/dateclass.get_beforeDate.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.2.</b>
                        
                        dateclass.get_beforeDate()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="getDate/dateclass.get_afterDate.html">
            
                
                    <a href="../getDate/dateclass.get_afterDate.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.3.</b>
                        
                        dateclass.get_afterDate()
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="getDate/months.html">
            
                
                    <a href="../getDate/months.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        针对月份的方法
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="getDate/dateclass.get_months.html">
            
                
                    <a href="../getDate/dateclass.get_months.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.1.</b>
                        
                        dateclass.get_months()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="getDate/dateclass.get_BOMs.html">
            
                
                    <a href="../getDate/dateclass.get_BOMs.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.2.</b>
                        
                        dateclass.get_BOMs()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="getDate/dateclass.get_EOMs.html">
            
                
                    <a href="../getDate/dateclass.get_EOMs.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.3.</b>
                        
                        dateclass.get_EOMs()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="getDate/dateclass.get_DUMs.html">
            
                
                    <a href="../getDate/dateclass.get_DUMs.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.4.</b>
                        
                        dateclass.get_DUMs()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="getDate/dateclass.get_beforeMonth.html">
            
                
                    <a href="../getDate/dateclass.get_beforeMonth.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.5.</b>
                        
                        dateclass.get_beforeMonth()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="getDate/dateclass.get_afterMonth.html">
            
                
                    <a href="../getDate/dateclass.get_afterMonth.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.6.</b>
                        
                        dateclass.get_afterMonth()
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="getDate/cycles.html">
            
                
                    <a href="../getDate/cycles.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        针对周期的方法
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="getDate/dateclass.get_cycles.html">
            
                
                    <a href="../getDate/dateclass.get_cycles.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.1.</b>
                        
                        dateclass.get_cycles()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="getDate/dateclass.get_BOCs.html">
            
                
                    <a href="../getDate/dateclass.get_BOCs.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.2.</b>
                        
                        dateclass.get_BOCs()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="getDate/dateclass.get_EOCs.html">
            
                
                    <a href="../getDate/dateclass.get_EOCs.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.3.</b>
                        
                        dateclass.get_EOCs()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="getDate/dateclass.get_DUCs.html">
            
                
                    <a href="../getDate/dateclass.get_DUCs.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.4.</b>
                        
                        dateclass.get_DUCs()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="getDate/dateclass.get_beforeCycle.html">
            
                
                    <a href="../getDate/dateclass.get_beforeCycle.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.5.</b>
                        
                        dateclass.get_beforeCycle()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="getDate/dateclass.get_afterCycle.html">
            
                
                    <a href="../getDate/dateclass.get_afterCycle.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.6.</b>
                        
                        dateclass.get_afterCycle()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4.7" data-path="getDate/dateclass.get_currentCycle.html">
            
                
                    <a href="../getDate/dateclass.get_currentCycle.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.7.</b>
                        
                        dateclass.get_currentCycle()
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="getStock/getStock.html">
            
                
                    <a href="../getStock/getStock.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        股票日频数据获取模块 getStock
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="getStock/stockclass.html">
            
                
                    <a href="../getStock/stockclass.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        stockclass()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="getStock/stockclass.read_data.html">
            
                
                    <a href="../getStock/stockclass.read_data.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        stockclass.read_data()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="getStock/stockclass.get_stockPools.html">
            
                
                    <a href="../getStock/stockclass.get_stockPools.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        stockclass.get_stockPools()
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="2.4" data-path="getStock/stockclass.get_data.html">
            
                
                    <a href="../getStock/stockclass.get_data.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.</b>
                        
                        stockclass.get_data()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="getStock/stockclass.get_names.html">
            
                
                    <a href="../getStock/stockclass.get_names.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.</b>
                        
                        stockclass.get_names()
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="getQuote/getQuote.html">
            
                
                    <a href="../getQuote/getQuote.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        股票分钟频数据获取模块 getQuote
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1" data-path="getQuote/quoteclass.html">
            
                
                    <a href="../getQuote/quoteclass.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.</b>
                        
                        quoteclass()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="getQuote/quoteclass.read_data.html">
            
                
                    <a href="../getQuote/quoteclass.read_data.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.2.</b>
                        
                        quoteclass.read_data()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="getQuote/quoteclass.get_data.html">
            
                
                    <a href="../getQuote/quoteclass.get_data.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.</b>
                        
                        quoteclass.get_data()
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4" data-path="getIndex/getIndex.html">
            
                
                    <a href="../getIndex/getIndex.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.</b>
                        
                        指数数据获取模块 getIndex
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.1" data-path="getIndex/indexclass.html">
            
                
                    <a href="../getIndex/indexclass.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.1.</b>
                        
                        indexclass()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.2" data-path="getIndex/indexclass.read_data.html">
            
                
                    <a href="../getIndex/indexclass.read_data.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.2.</b>
                        
                        indexclass.read_data()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.3" data-path="getIndex/indexclass.get_data.html">
            
                
                    <a href="../getIndex/indexclass.get_data.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.3.</b>
                        
                        indexclass.get_data()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.4" data-path="getIndex/indexclass.get_infos.html">
            
                
                    <a href="../getIndex/indexclass.get_infos.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.4.</b>
                        
                        indexclass.get_infos()
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="5" data-path="factorProcess/factorProcess.html">
            
                
                    <a href="../factorProcess/factorProcess.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.</b>
                        
                        因子处理模块 factorProcess
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="5.1" data-path="factorProcess/describe.html">
            
                
                    <a href="../factorProcess/describe.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.1.</b>
                        
                        describe()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.2" data-path="factorProcess/winsorize.html">
            
                
                    <a href="../factorProcess/winsorize.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.2.</b>
                        
                        winsorize()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.3" data-path="factorProcess/neutralize.html">
            
                
                    <a href="../factorProcess/neutralize.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.3.</b>
                        
                        neutralize()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.4" data-path="factorProcess/normalize.html">
            
                
                    <a href="../factorProcess/normalize.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.4.</b>
                        
                        normalize()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.5" data-path="factorProcess/standardize.html">
            
                
                    <a href="../factorProcess/standardize.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.5.</b>
                        
                        standardize()
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="6" data-path="factorTest/factorTest.html">
            
                
                    <a href="../factorTest/factorTest.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.</b>
                        
                        因子检验模块 factorTest
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="6.1" data-path="factorTest/ICIRclass.html">
            
                
                    <a href="../factorTest/ICIRclass.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.1.</b>
                        
                        ICIRclass()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6.2" data-path="factorTest/ICIRclass.get_result.html">
            
                
                    <a href="../factorTest/ICIRclass.get_result.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.2.</b>
                        
                        ICIRclass.get_result()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6.3" data-path="factorTest/ICIRclass.save_result.html">
            
                
                    <a href="../factorTest/ICIRclass.save_result.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.3.</b>
                        
                        ICIRclass.save_result()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6.4" data-path="factorTest/groupclass.html">
            
                
                    <a href="../factorTest/groupclass.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.4.</b>
                        
                        groupclass()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6.5" data-path="factorTest/groupclass.get_result.html">
            
                
                    <a href="../factorTest/groupclass.get_result.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.5.</b>
                        
                        groupclass.get_result()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6.6" data-path="factorTest/groupclass.save_result.html">
            
                
                    <a href="../factorTest/groupclass.save_result.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.6.</b>
                        
                        groupclass.save_result()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6.7" data-path="factorTest/regressionclass.html">
            
                
                    <a href="../factorTest/regressionclass.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.7.</b>
                        
                        regressionclass()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6.8" data-path="factorTest/regressionclass.get_result.html">
            
                
                    <a href="../factorTest/regressionclass.get_result.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.8.</b>
                        
                        regressionclass.get_result()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6.9" data-path="factorTest/regressionclass.save_result.html">
            
                
                    <a href="../factorTest/regressionclass.save_result.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.9.</b>
                        
                        regressionclass.save_result()
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="7" data-path="example/example.html">
            
                
                    <a href="../example/example.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.</b>
                        
                        因子计算范例
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="7.1" data-path="example/MKT-SMB-HML.html">
            
                
                    <a href="../example/MKT-SMB-HML.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.1.</b>
                        
                        计算 MKT/SMB/HML
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.2" data-path="example/iDStd-iDSkew-iDKurt.html">
            
                
                    <a href="../example/iDStd-iDSkew-iDKurt.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.2.</b>
                        
                        计算 iDStd/iDSkew/iDKurt
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.3" data-path="example/SmartMoney.html">
            
                
                    <a href="../example/SmartMoney.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.3.</b>
                        
                        计算 SmartMoney
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.4" data-path="example/factorTest.html">
            
                
                    <a href="../example/factorTest.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.4.</b>
                        
                        进行因子预处理与有效性检验
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    本书使用 GitBook 发布
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../" >量化投资程序 帮助文档</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="stockclassgetdata">stockclass.get_data()</h1>
<pre><code class="lang-python">data = stockclass.get_data(secIDs=stockPool, dates=dates, fields=[<span class="hljs-string">&apos;CloseR&apos;</span>, <span class="hljs-string">&apos;Volume&apos;</span>], showProcess=<span class="hljs-keyword">True</span>)
</code></pre>
<ol>
<li><p>&#x91CA;&#x4E49;</p>
<p> &#x83B7;&#x53D6;&#x76EE;&#x6807;&#x8BC1;&#x5238;&#x6C60;&#x5728;&#x4E00;&#x5B9A;&#x65E5;&#x671F;&#x8303;&#x56F4;&#x5185;&#x7684;&#x884C;&#x60C5;&#x6570;&#x636E;</p>
</li>
<li><p>&#x53C2;&#x6570;</p>
<p><code>secIDs</code></p>
<ul>
<li>&#x91CA;&#x4E49;<br>  &#x5E0C;&#x671B;&#x67E5;&#x8BE2;&#x7684;&#x8BC1;&#x5238;&#x4EE3;&#x7801;</li>
<li>&#x7C7B;&#x578B;<br>  &#x5E8F;&#x5217;(pd.Series) &#x6216; &#x5217;&#x8868;(list)</li>
</ul>
<p><code>dates</code></p>
<ul>
<li>&#x91CA;&#x4E49;<br>  &#x5E0C;&#x671B;&#x67E5;&#x8BE2;&#x7684;&#x65E5;&#x671F;&#x5E8F;&#x5217;</li>
<li>&#x7C7B;&#x578B;<br>  &#x5E8F;&#x5217;(pd.Series) &#x6216; &#x5217;&#x8868;(list)</li>
</ul>
<p><code>fields</code></p>
<ul>
<li>&#x91CA;&#x4E49;<br>  &#x5E0C;&#x671B;&#x67E5;&#x8BE2;&#x7684;&#x4FE1;&#x606F;&#x3002;&#x5177;&#x4F53;&#x4EE3;&#x7801;&#x8BE6;&#x89C1;<a href="#jump">5.&#x4EE3;&#x7801;</a></li>
<li>&#x7C7B;&#x578B;<br>  &#x5E8F;&#x5217;(pd.Series) &#x6216; &#x5217;&#x8868;(list)</li>
</ul>
<p><code>showProcess</code> (optional)</p>
<ul>
<li>&#x91CA;&#x4E49;<br>  &#x662F;&#x5426;&#x663E;&#x793A;&#x8FDB;&#x5EA6;&#x6761;</li>
<li>&#x7C7B;&#x578B;<br>  &#x5E03;&#x5C14;&#x578B;(bool)</li>
</ul>
</li>
<li><p>&#x8FD4;&#x56DE;</p>
<ul>
<li>&#x91CA;&#x4E49;<br>  &#x76EE;&#x6807;&#x8BC1;&#x5238;&#x6C60;&#x5728;&#x4E00;&#x5B9A;&#x65E5;&#x671F;&#x8303;&#x56F4;&#x5185;&#x7684;&#x884C;&#x60C5;&#x6570;&#x636E;</li>
<li>&#x7C7B;&#x578B;<br>  &#x6570;&#x636E;&#x6846;(pd.DataFrame)<br>  &#x6309;&#x65F6;&#x95F4;&#x987A;&#x5E8F;&#x4ECE;&#x524D;&#x5230;&#x540E;&#x6392;&#x5217;&#x3002;index&#x4E3A;&#x8BC1;&#x5238;&#x4EE3;&#x7801;&#xFF0C;&#x7C7B;&#x578B;&#x4E3A;&#x5B57;&#x7B26;&#x4E32;(str)&#xFF1B;&#x6BCF;&#x5217;&#x4E3A;&#x83B7;&#x53D6;&#x7684;&#x6570;&#x636E;&#xFF0C;&#x5176;&#x4E2D;&#x7B2C;&#x4E00;&#x5217;&#x9ED8;&#x8BA4;&#x4E3A;&#x65E5;&#x671F;&#x6570;&#x636E;&#x3002;</li>
</ul>
</li>
<li><p>&#x4F8B;&#x5B50;</p>
<ul>
<li><p>&#x8F93;&#x5165;</p>
<pre><code class="lang-python"><span class="hljs-keyword">import</span> sys
sys.path.append(<span class="hljs-string">&apos;modules&apos;</span>)
<span class="hljs-keyword">from</span> getDate <span class="hljs-keyword">import</span> dateclass
<span class="hljs-keyword">from</span> getStock <span class="hljs-keyword">import</span> stockclass

dateClass = dateclass()
stockClass = stockclass(<span class="hljs-string">&apos;data/stock/1day&apos;</span>, preRead=[<span class="hljs-string">&apos;CloseR&apos;</span>, <span class="hljs-string">&apos;Volume&apos;</span>])

beginDate = <span class="hljs-string">&apos;20050101&apos;</span>
endDate = <span class="hljs-string">&apos;20210531&apos;</span>
dates = dateClass.get_dates(beginDate, endDate)

stockPools = stockClass.get_stockPools([dates[<span class="hljs-number">0</span>]])
stockPool = stockPools[dates[<span class="hljs-number">0</span>]]

data = stockClass.get_data(secIDs=stockPool, dates=dates.iloc[<span class="hljs-number">0</span>:<span class="hljs-number">100</span>], fields=[<span class="hljs-string">&apos;CloseR&apos;</span>, <span class="hljs-string">&apos;Volume&apos;</span>])
print(data)
</code></pre>
</li>
<li><p>&#x8F93;&#x51FA;</p>
<pre><code class="lang-python">              dates        CloseR    Volume
secIDs
<span class="hljs-number">600601.</span>SH  <span class="hljs-number">20050104</span>  <span class="hljs-number">16775.712957</span>  <span class="hljs-number">32794.22</span>
<span class="hljs-number">600602.</span>SH  <span class="hljs-number">20050104</span>   <span class="hljs-number">2701.378695</span>   <span class="hljs-number">6938.07</span>
<span class="hljs-number">600651.</span>SH  <span class="hljs-number">20050104</span>  <span class="hljs-number">28809.058197</span>   <span class="hljs-number">8590.88</span>
<span class="hljs-number">600652.</span>SH  <span class="hljs-number">20050104</span>  <span class="hljs-number">18666.704172</span>  <span class="hljs-number">12442.90</span>
<span class="hljs-number">600653.</span>SH  <span class="hljs-number">20050104</span>  <span class="hljs-number">22148.282344</span>  <span class="hljs-number">21101.85</span>
<span class="hljs-prompt">... </span>            ...           ...       ...
<span class="hljs-number">002035.</span>SZ  <span class="hljs-number">20050608</span>      <span class="hljs-number">6.823266</span>  <span class="hljs-number">18744.09</span>
<span class="hljs-number">002036.</span>SZ  <span class="hljs-number">20050608</span>      <span class="hljs-number">5.413203</span>  <span class="hljs-number">14540.58</span>
<span class="hljs-number">600979.</span>SH  <span class="hljs-number">20050608</span>      <span class="hljs-number">4.390000</span>  <span class="hljs-number">25832.47</span>
<span class="hljs-number">002037.</span>SZ  <span class="hljs-number">20050608</span>      <span class="hljs-number">6.181386</span>  <span class="hljs-number">29058.89</span>
<span class="hljs-number">002038.</span>SZ  <span class="hljs-number">20050608</span>     <span class="hljs-number">10.588183</span>   <span class="hljs-number">5499.54</span>

[<span class="hljs-number">121100</span> rows x <span class="hljs-number">3</span> columns]
</code></pre>
</li>
</ul>
</li>
<li><p><span id="jump">&#x4EE3;&#x7801;</span></p>
</li>
</ol>
<p>&#x76EE;&#x524D;&#x652F;&#x6301;&#x67E5;&#x8BE2;&#x7684;&#x4FE1;&#x606F;&#x4EE3;&#x7801;&#x5982;&#x4E0B;:&#xFF08;&#x6CE8;&#x610F;&#x5927;&#x5C0F;&#x5199;&#xFF09;  </p>
<p>&#x8001;&#x5E08;&#x7ED9;&#x51FA;&#x7684;&#x6570;&#x636E;:  </p>
<table>
<thead>
<tr>
<th style="text-align:left">&#x590D;&#x6743;&#x524D;</th>
<th style="text-align:left">&#x590D;&#x6743;&#x540E;</th>
<th style="text-align:left">&#x5176;&#x4ED6;&#x6570;&#x636E;</th>
<th style="text-align:left">&#x6362;&#x7B97;&#x6570;&#x636E;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">&#x5F00;&#x76D8;&#x4EF7;: Open</td>
<td style="text-align:left">&#x5F00;&#x76D8;&#x4EF7;: OpenR</td>
<td style="text-align:left">&#x4E2D;&#x4FE1;&#x4E00;&#x7EA7;&#x884C;&#x4E1A;&#x6807;&#x7B7E;: IndZX</td>
<td style="text-align:left">&#x65E5;&#x5BF9;&#x6570;&#x6536;&#x76CA;&#x7387;: DailyReturnLog</td>
</tr>
<tr>
<td style="text-align:left">&#x6700;&#x9AD8;&#x4EF7;: High</td>
<td style="text-align:left">&#x6700;&#x9AD8;&#x4EF7;: HighR</td>
<td style="text-align:left">&#x603B;&#x5E02;&#x503C;: tCap</td>
<td style="text-align:left">&#x65E5;&#x7B80;&#x5355;&#x6536;&#x76CA;&#x7387;: DailyReturnSimple</td>
</tr>
<tr>
<td style="text-align:left">&#x6700;&#x4F4E;&#x4EF7;: Low</td>
<td style="text-align:left">&#x6700;&#x4F4E;&#x4EF7;: LowR</td>
<td style="text-align:left">ST&#x4E0E;&#x5426;: isST</td>
<td style="text-align:left">&#x3000;</td>
</tr>
<tr>
<td style="text-align:left">&#x6536;&#x76D8;&#x4EF7;: Close</td>
<td style="text-align:left">&#x6536;&#x76D8;&#x4EF7;: CloseR</td>
<td style="text-align:left">&#x505C;&#x724C;&#x4E0E;&#x5426;: isStop</td>
<td style="text-align:left">&#x3000;</td>
</tr>
<tr>
<td style="text-align:left">&#x6210;&#x4EA4;&#x989D;: Amount</td>
<td style="text-align:left">&#x6210;&#x4EA4;&#x989D;: AmountR</td>
<td style="text-align:left">&#x4E0A;&#x5E02;&#x65E5;&#x671F;: tradeDays</td>
<td style="text-align:left">&#x3000;</td>
</tr>
<tr>
<td style="text-align:left">&#x6210;&#x4EA4;&#x91CF;: Volume</td>
<td style="text-align:left">&#x6210;&#x4EA4;&#x91CF;: VolumeR</td>
<td style="text-align:left">&#x3000;</td>
<td style="text-align:left">&#x3000;</td>
</tr>
</tbody>
</table>
<p>tushare&#x5BFC;&#x51FA;&#x7684;&#x6570;&#x636E;:  </p>
<table>
<thead>
<tr>
<th style="text-align:left">&#x4EA4;&#x6613;&#x6570;&#x636E;</th>
<th style="text-align:left">&#x8D22;&#x52A1;&#x6570;&#x636E;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">&#x603B;&#x5E02;&#x503C;: MVTotal</td>
<td style="text-align:left">&#x5E02;&#x51C0;&#x7387;: PB</td>
</tr>
<tr>
<td style="text-align:left">&#x6D41;&#x901A;&#x5E02;&#x503C;: MVFloat</td>
<td style="text-align:left">&#x5E02;&#x76C8;&#x7387;: PE</td>
</tr>
<tr>
<td style="text-align:left">&#x603B;&#x80A1;&#x672C;: ShareTotal</td>
<td style="text-align:left">&#x5E02;&#x76C8;&#x7387;TTM: PETTM</td>
</tr>
<tr>
<td style="text-align:left">&#x6D41;&#x901A;&#x80A1;&#x672C;: ShareFloat</td>
<td style="text-align:left">&#x5E02;&#x9500;&#x7387;: PS</td>
</tr>
<tr>
<td style="text-align:left">&#x81EA;&#x7531;&#x6D41;&#x901A;&#x80A1;&#x672C;: ShareFree</td>
<td style="text-align:left">&#x5E02;&#x9500;&#x7387;TTM: PSTTM</td>
</tr>
<tr>
<td style="text-align:left">&#x6362;&#x624B;&#x7387;: TurnoverRate</td>
<td style="text-align:left">&#x80A1;&#x606F;&#x7387;: DividRatio</td>
</tr>
<tr>
<td style="text-align:left">&#x81EA;&#x7531;&#x6D41;&#x901A;&#x80A1;&#x6362;&#x624B;&#x7387;: TurnoverRateFree</td>
<td style="text-align:left">&#x80A1;&#x606F;&#x7387;TTM: DividRatioTTM</td>
</tr>
<tr>
<td style="text-align:left">&#x91CF;&#x6BD4;: VolumeRatio</td>
<td style="text-align:left">&#x3000;</td>
</tr>
</tbody>
</table>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../getStock/stockclass.get_stockPools.html" class="navigation navigation-prev " aria-label="Previous page: stockclass.get_stockPools()"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../getStock/stockclass.get_names.html" class="navigation navigation-next " aria-label="Next page: stockclass.get_names()"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../gitbook/app.js"></script>

    
    <script src="../gitbook/plugins/gitbook-plugin-back-to-top-button/plugin.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-splitter/splitter.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-code/plugin.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-auto-scroll-table/plugin.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"back-to-top-button":{},"chapter-fold":{},"expandable-chapters":{},"splitter":{},"popup":{},"code":{"copyButtons":true},"auto-scroll-table":{},"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":false,"twitter":false,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":[]},"fontsettings":{"theme":"white","family":"sans","size":2}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
